how to save data to text file python

33

how to save data to text file python -

with open('readme.txt', 'w') as f:
    f.write('readme')
Code language: JavaScript (javascript)

Comments

Submit
0 Comments